wpt_tmp->sat = atof(cdatastrp);
break;
case tt_fix:
- wpt_tmp->fix = atof(cdatastrp);
+ wpt_tmp->fix = atoi(cdatastrp)-1;
+ if ( wpt_tmp->fix < fix_2d) {
+ if (!strcasecmp(cdatastrp, "none"))
+ wpt_tmp->fix = fix_none;
+ else if (!strcasecmp(cdatastrp, "dgps"))
+ wpt_tmp->fix = fix_dgps;
+ else if (!strcasecmp(cdatastrp, "pps"))
+ wpt_tmp->fix = fix_pps;
+ else
+ wpt_tmp->fix = fix_unknown;
+ }
break;
case tt_unknown:
end_something_else();